package jhlee42;

import jhlee42.services.Account2Service;
import model.Account2VO;

public class J16Account {
	
	// Account2VO()
	// Account2IService()
	// Account2Service()

	public static void main(String[] args) {
		// 계좌 정보 작성
		Account2VO ac = new Account2VO("1122",20000,4.5,"2014-04-01");
		// 계좌 처리(월간이자,입금,입출)
		Account2Service as = new Account2Service();
		as.getMonthlyInterestRate(ac);
		as.withDraw(ac, 1950);// 인출
		as.deposit(ac, 5000);// 입금
		
		// 결과 출력
		System.out.println(ac.toString());
	}

}
